* {
    cursor: url('icon-porfolio.png'), auto;
    font-family: 'InstrumentSerif';
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    background-image: url(https://www.emptyspace.photo/assets/images/dot-grid.svg);
    background-repeat: repeat;
}

@font-face {
    font-family: 'InstrumentSerif';
    src: url('fonts/InstrumentSerif-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

main {
    margin: auto;
    max-width: 1200px;
}

.surmoi {
    background-color: white;
    font-size: 500%;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.Bonjour:hover {
    color: #0000EE;
    transition: all 0.3s ease;
}

p:hover {
    color: #0000EE;
    transition: all 0.3s ease;
}

img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

div.foto-port {
    padding: 10%;
    background-color: transparent;
    gap: 10%;
}

.beskrivelse {
    margin: auto;
    font-size: 350%;
}

.first {
    padding: 1px;
    margin-bottom: 0%;
    background-color: white;
    max-width: 400px;
}

.second {
    padding: 1px;
    background-color: white;
    font-size: 50%;
    font-family: 'InstrumentSerif';
    margin: 0%;
    max-width: 400px;
}

header {
    padding: 60px;
    text-align: center;
    background-color: #ffffff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 0px;
}



.component:hover:nth-of-type(1) { background-color: #c1121f; }
.component:hover:nth-of-type(2) { background-color: #8ecae6; }
.component:hover:nth-of-type(3) { background-color: #ffb703; }
.component:hover:nth-of-type(4) { background-color: #669bbc; }
.component:hover:nth-of-type(5) { background-color: #9e2a2b; }
.component:hover:nth-of-type(6) { background-color: #d00000; }
.component:hover:nth-of-type(7) { background-color: #f77f00; }
.component:hover:nth-of-type(8) { background-color: #ff5400; }
.component:hover:nth-of-type(9) { background-color: #3e5c76; }

.component:hover .content-text {
    color: white;
}

.component {
    transition: all 0.3s ease;
}


ul {
    justify-content: space-between;
    display: flex;
    justify-items: center;
    flex-wrap: wrap;
    margin: auto;
    list-style-type: none;
    padding-left: 0;
    column-gap: 10px;
}

li {
    margin-bottom: 40px;
}

#last-li {
    margin-bottom: 0;
}

.star {
    position: relative;
    top: 18px;
}

.headbutton a {
    text-decoration: none;
    color: #000000;
    font-size: 120%;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.headbutton a:hover {
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.styled-letter:hover {
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.prosjekter {
    visibility: hidden;
    position: absolute;
}

.section-c, .section-b{
    box-shadow: rgba(0, 0, 0, 0.08) 0px -1px 0px;
    width: 100%;
    background-color: white;
    text-align: center;
    font-family: 'InstrumentSerif';
    font-weight: 400;
    font-size: 400%;
    padding-bottom: 100px;
    padding-top: 30px;
    position: relative;
}

.ferdigheter {
    text-align: center;
    font-family: 'InstrumentSerif';
    font-weight: 300;
    font-size: 470%;
    margin-bottom: 20px;
}

.list {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    margin-top: 10px;
    width: 73vw;
    gap: 34px;
    margin-bottom: 100px;
}

.component {
    width: 23vw;
    height: 23vw;
    background: #ffffff;
    image-rendering: auto;
    background-repeat: no-repeat;
    background-size: cover;
}

.content-section {
    width: 20vw;
    height: 20vw;
}

#eth-value {
    text-align: center;
    margin: auto;
    max-width: 80%;
}

.content-text {
    font-size: 300%;
}

#special-hit {
    visibility: hidden;
    position: absolute;
}

.projects {
    visibility: hidden;
    position: absolute;
}

.links-soc {
    color: #000000;
    text-decoration: none;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.links-soc:hover {
    color: #0000EE;
    transition: all 0.3s ease;
}

.img-cash {
    margin: auto;
    margin-top: 30px;
    width: 50vh;
}

@media (max-width: 1200px) {
    .content-text {
        font-size: 200%;
    }
}

@media (max-width: 1300px) {
    .titel-1 {
        margin-left: 20px;
        font-size: 300%;
    }

    header {
        visibility: hidden;
        position: absolute;
    }

    .projects {
        background-color: white;
        margin: auto;
        width: 80%;
        visibility: visible;
        position: relative;
    }

    ul {
        justify-content: left;
    }

    .headbutton a:hover {
        text-decoration: none;
        background-color: #000000;
        color: #ffffff;
        font-size: 120%;
        padding: 10px 20px;
        border: 1px solid transparent;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    #special-hit {
        visibility: visible;
        position: relative;
    }

    .content-text {
        font-size: 160%;
    }

    .list {
        gap: 14px;
    }
}

@media (max-width: 577px) {
    .img-cash {
        width: 70%;
    }

    body {
        margin: auto;
    }

    #builder {
        font-size: 70%;
    }

    .ferdigheter {
        text-align: center;
        font-family: 'InstrumentSerif';
        font-weight: 300;
        font-size: 300%;
        margin-bottom: 20px;
    }
    
}

@media (max-width: 500px) {
    /*
    html {
        overflow-x: hidden;  Hides horizontal overflow only 
    }
        */

    .component {
        width: 73vw;
        height: 73vw;
        background: #ffffff;
        image-rendering: auto;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .content-section {
        width: 70vw;
        height: 70vw;
    }

    .headbutton a {
        font-size: 160%;
        transition: all 0.3s ease;
    }

    .headbutton a:hover {
        font-size: 160%;
        padding: 10px 20px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .content-text {
        font-size: 260%;
    }

    .surmoi {
        margin-top: 40px;
        font-size: 300%;
        font-family: 'InstrumentSerif';
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .first {
        font-size: 50%;
    }

    .second {
        font-size: 30%;
    }

    #eth-value {
        font-size: 60%;
    }

    .section-c p, .links-soc {
        font-size: 60%;
    }
    
}
